package day09_zy;

public class Triangle extends Shape {
	private double edgea ;
	private double edgeb ;
	private double edgec ;
	
	
Triangle() {
		super();
	}


Triangle(double edgea, double edgeb, double edgec) {
	super();
	this.edgea = edgea;
	this.edgeb = edgeb;
	this.edgec = edgec;
}


public double getEdgea() {
		return edgea;
	}

	public void setEdgea(double edgea) {
		this.edgea = edgea;
	}

	public double getEdgeb() {
		return edgeb;
	}

	public void setEdgeb(double edgeb) {
		this.edgeb = edgeb;
	}

	public double getEdgec() {
		return edgec;
	}

	public void setEdgec(double edgec) {
		this.edgec = edgec;
	}

	//重写继承的抽象方法
	@Override
	public double area() {
		return this.edgea * this.edgeb / 2 ;
	}

	@Override
	public double perimeter() {
		return this.edgea + this.edgeb + this.edgec;
	}

}
